package com.gitee.wsl.compose.graphics.drawScope

import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawWithContent
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.graphicsLayer

import com.gitee.wsl.compose.modifier.ModifierDrawScope


/**
 * Modifier that calls [Modifier.drawWithContent] with [DrawScope.drawWithLayer]
 */
//internal fun Modifier.drawWithLayer(block: DrawScope.() -> Unit) = this.then(
//    Modifier.drawWithContent {
//        drawWithLayer {
//            block()
//        }
//    }
//)

//fun ModifierDrawScope.drawWithLayer(block: DrawScope.() -> Unit){
//    modifier.graphicsLayer {  }
//    modifier = modifier.drawWithLayer(block)
//}